﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/PleaseORM.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<dynamic>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Index</h2>

    <table>
        <tr>
            <th></th>
        </tr>

    <% foreach (dynamic item in Model) { %>
				
        <tr>
            <td>
							<strong><%: item.Name %></strong> - <span><%: item.Address %></span>
                <%: Html.ActionLink("Edit", "Edit", new { id= item.Id }) %> |
                <%: Html.ActionLink("Details", "Details", new { id = item.Id })%> |
                <%: Html.ActionLink("Delete", "Delete", new { id = item.Id })%>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>

